package org.dromara.system.listener;

import cn.idev.excel.context.AnalysisContext;
import org.dromara.common.excel.core.DefaultExcelListener;
import org.dromara.system.domain.vo.SimCardVo;

public class AllocateSimCardByFileListener extends DefaultExcelListener<SimCardVo> {

    public AllocateSimCardByFileListener() {
        // 显示使用构造函数，否则将导致空指针
        super(true);
    }

    @Override
    public void invoke(SimCardVo data, AnalysisContext context) {
        // 添加到处理结果中
        getExcelResult().getList().add(data);
    }
}
